package com.go.where.manager.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.go.where.manager.dao.AlbumDao;
import com.go.where.manager.pojo.AlbumInfo;

@Repository("albumDao")
public class AlbumDaoImpl extends BaseDaoImpl<AlbumInfo> implements AlbumDao {

	@Override
	protected String getNameSpace() {
		return "mybatis.xml.AlbumMapper";
	}

	@Override
	public List<AlbumInfo> queryAll() {
		return getSqlSession().selectList(getNameSpace() + ".queryAll");
	}

	@Override
	public Long queryTotalSupport(AlbumInfo albumInfo) {
		return getSqlSession().selectOne(getNameSpace() + ".queryTotalSupport",
				albumInfo);
	}
}
